interface Man {
    name: string;
    talk(): void;
}
class Student implements Man {
    age: number;
    constructor(public name:string, age: number){
        this.age = age
    }
    talk(): void {
        console.log('我是小学生');
        
    }
}
const heightStudent = new Student('黄锐伟',10)
console.log(heightStudent.age);


